package cn.ranko.shiro.mapper;

import cn.ranko.bean.Pagination;
import cn.ranko.shiro.model.SysRole;
import cn.ranko.shiro.model.SysUser;

import java.util.List;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    Integer countOfSysRole();

    List<SysUser> querySysRole(Pagination pagination);

    List<String> selectRolenamesByUserId(Integer userId);

    List<String> selectPermissionByUserId(Integer userId);

    String getRolenamestr(Integer userId);

    List<SysRole> loadAll();
}